国策: 国策编辑器覆盖 ai_will_do = { factor = 10 } select_effect = { } available = { } completion_reward = { } allow_branch = { } bypass = { } offset = { x = y = trigger = { } } 正常国策: focus_tree = { id = country = { factor = 0 modifier = { add = 10 tag = } } default = no continuous_focus_position = { x = 1100 y = 2000 } shared_focus = focus = { id = your_national_focus_id icon = GFX_goal_unknown cost = 0.00 prerequisite = { focus = DDR_nanfanggeming } x = 8 y = 12 ai_will_do = { factor = 10 } select_effect = { } available = { } bypass = { } completion_reward = { } allow_branch = { } offset = { x = -7 trigger = { if = { limit = { has_completed_focus = DDR_taiermantongzhi_wansui } has_completed_focus = DDR_shizhengfangzhen } } } } } 共享国策:无国策树 shared_focus = { id = your_shared_national_focus_id icon = GFX_goal_unknown cost = 1.00 x = y = available = { } select_effect = { } completion_reward = { } bypass = { } cancel_if_invalid = yes continue_if_invalid = no available_if_capitulated = no allow_branch = { } offset = { x = y = trigger = { } } ai_will_do = { factor = 1 } } 事件: country_event : 仅被触发 add_namespace = your_event_name country_event = { id = your_event_name.1 title = your_event_name.1.t desc = your_event_name.1.d picture = GFX_report_event_chinese_soldiers_fighting is_triggered_only = yes immediate = { } option = { name = your_event_name.1.a ai_chance = { base = } } option = { name = your_event_name.1.b ai_chance = { base = } } } news_event : 新闻事件:全球 news_event = { id = your_event_name.2 title = your_event_name.2.t desc = your_event_name.2.d picture = GFX_report_event_chinese_soldiers_fighting is_triggered_only = yes Major = yes immediate = { } option = { name = your_event_name.2.a trigger = { } } option = { name = your_event_name.2.a trigger = { } } } country_event :可检测触发 country_event = { id = your_event_name.1 title = your_event_name.1.t desc = your_event_name.1.d picture = GFX_report_event_chinese_soldiers_fighting is_triggered_only = No fire_only_once = yes trigger = { } mean_time_to_happen = { } option = { name = your_event_name.1.a ai_chance = { base = } } } 决议: your_dec_cate = { your_dec_1 = { icon = cost = visible = { } available = { } fire_only_once = no complete_effect = { } modifier = { } days_remove = days_re_enable = remove_effect = { } ai_will_do = { factor = 10 } } your_mission = { allowed = { } visible = { } available = { } activation = { } is_good = fire_only_once = selectable_mission = days_re_enable = 1 days_mission_timeout = 70 timeout_effect = { } complete_effect = { } ai_will_do = { factor = 10 } } your_target_dec = { icon = cost = allowed = { } visible = { } available = { } target_root_trigger = { } targets = { } targets_dynamic = fire_only_once = no days_remove = 00 remove_effect = { } ai_will_do = { factor = 10 } } your_target_state_dec = { icon = cost = state_target = yes on_map_mode = map_only allowed = { } visible = { } available = { } target_root_trigger = { } targets = { } target_trigger = { } targets_dynamic = fire_only_once = no days_remove = 00 remove_effect = { } ai_will_do = { factor = 10 } } } 民精 ideas = { country = { idea = { allow = { always = yes } available = { always = no } removal_cost = -1 modifier = { } allowed_to_remove = { always = no } cancel = { } cancel_if_invalid = no on_add = { } on_remove = { } } } } GUI guiTypes = { containerWindowType = { name = "container_window" position = { x = 0 y= 0 } clipping = no moveable = yes show_animation_type = decelerated hide_animation_type = accelerated show_position = { x= 0 y =0 } size = { width = 524 height = 670 } animation_time = 450 click_to_front = yes show_sound = menu_open_window background = { name = "Background" quadTextureSprite ="GFX" } buttonType = { name = "button" position = { x = 0 y = 0 } quadTextureSprite = "GFX_closebutton" } iconType ={ name ="name" quadTextureSprite = "GFX" position = { x= 0 y = 0 } } instantTextboxType = { name = "name" position = { x = 0 y =0 } font = "hoi_16mbs" text = "text" maxWidth = 200 maxHeight = 36 format = center vertical_alignment = center pdx_tooltip = text_tt } } } 本地化:(请用N++或者VSC更换编码为UTF-8 with Bom) l_english: 变量本地化 :0 "[?|Y0%]" £ 文本图片(代替GFX_) 彩色文本 §Y文本§! 使文本变为白色 §W§! 使文本变为绿色 §G§! 使文本变为红色 §R§! 使文本变为蓝色 §B§! 使文本变为黄色 §Y§! 使文本变为黑色 §b§! 使文本变为浅蓝色(青色) §C§! 使文本变为灰色 §g§! 使文本变为蓝绿色 §T§! 使文本变为淡绿色 §l§! 使文本变为黄色(与§Y作用相同) §H§! 使文本变为橙色 §O§! 把后面的值转换成百分数 §%§! 把后面的值转换成国际单位制 §*§! 如果后面的值为正,则添加+号;如果为负,添加-号 §= §! 控制小数点后显示的位数 §0..9 §! 动态文本: [Root.GetName] GetName GetNameDef GetAdjective GetAdjectiveCap GetLeader GetRulingParty GetRulingIdeology GetRulingIdeologyNoun GetPartySupport GetLastElection GetManpower GetFactionName GetFlag GetNameWithFlag GetCommunistParty GetDemocraticParty GetFascistParty GetNeutralParty GetDateText GetDateString GetDateStringShortMonth GetDateStringNoHour GetDateStringNoHourLong GetYear GetHerselfHimself GetHerHis GetSheHe GetSheHeCap GetRank GetManchuriaPuppet GetID GetTag 循环指令: set_variable = { varname = X } WHILE_LOOP_EFFECT = { limit = { check_variable = { varname < Y } } #hidden_effect = #xxxxeffectxxxx add_to_variable = { varname = 1 } } is_latin_american_country = yes #是拉美国家 #原版 division_template = { name = "División_del_Ejército_de_África" template_counter = 4 division_names_group = SPR_INF_06 regiments = { infantry = { x = 0 y = 0 } artillery_brigade = { x = 2 y = 1 } artillery_brigade = { x = 2 y = 2 } } support = { recon = { x = 0 y = 0 } engineer = { x = 0 y = 1 } } } create_unit = { division = "division_template = \"División_del_Ejército_de_África\" start_experience_factor = 0.3" owner = SPR } add_days_mission_timeout = { mission = your_mission_id days = }